<?php

use yii\helpers\Html;
use yii\grid\GridView;

/* @var $this yii\web\View */
/* @var $searchModel common\models\projectsummary\ProjectSummarySearch */
/* @var $dataProvider yii\data\ActiveDataProvider */

$this->title = Yii::t('app', '项目总结报告');
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="project-summary-index">

    <p>
        <?//= Html::a(Yii::t('app', 'Create Project Summary'), ['create'], ['class' => 'btn btn-success']) ?>
    </p>
    <?= GridView::widget([
        'dataProvider' => $dataProvider,
        'filterModel' => $searchModel,
        'columns' => [
            ['class' => 'yii\grid\SerialColumn'],

            'id',
            'number',
            'name',
            'cname',
            'category',
            // 'bearunit',
            // 'amount_subsidy',
            // 'starttime:datetime',
            // 'endtime:datetime',
            // 'proj_leader',
            // 'proj_telephone',
            // 'proj_summ',
            // 'registration_form',
            // 'bear_option',
            // 'mana_option',
            // 'depart_leader',
            // 'total_appropriation',
            // 'surplus',
            // 'actual_item',
            // 'paid_money',
            // 'paid_note',
            // 'fina_leader',
            // 'lister',
            // 'file_name',
            // 'file_description',
            // 'proj_size',

            [
                'class' => 'yii\grid\ActionColumn',
                'header' => '操作',
                'template' => '{view}{update}',
                'headerOptions' => ['width' => '200'],
                'buttons' => [
                    'view' => function ($url, $model, $key) {
                        return  Html::a('&nbsp;&nbsp;<span class="glyphicon glyphicon-eye-open" ><span class="classformat">查看</span></span>', $url, ['title' => '查看'] ) ;
                    },
                    'update' => function ($url, $model, $key) {
                        return Html::a('&nbsp;&nbsp;<span class="glyphicon glyphicon-pencil"><span class="classformat">修改</span></span>', $url, ['title' => '修改'] ) ;
                    },
                ],
            ],
        ],
    ]); ?>
</div>
